#include <stdio.h>
#include <stdlib.h>

//https://www.nowcoder.com/practice/83d6afe3018e44539c51265165806ee4?tpId=290&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D290

typedef struct STR {
    int count;
    char str[0];
}STR;

int main() {
    int num = 0;
    while (~scanf("%d", &num)) {
        STR *Str = (STR *) malloc(sizeof(STR) + num * sizeof(char) + 1);
        Str->count = num;
        Str->str[num] = '\0';
        int left = 0;
        int right = num - 1;
        for (int i = 0; i < num; i++) {
            Str->str[i] = ' ';
        }
        for (; left < right; left++, right--) {
            Str->str[left] = '*';
            Str->str[right] = '*';
            printf("%s\n", Str->str);
            Str->str[left] = ' ';
            Str->str[right] = ' ';
        }
        if (left > right) {
            left--;
            right++;
        }
        for (; 0 <= left || right > num; left--, right++) {
            Str->str[left] = '*';
            Str->str[right] = '*';
            printf("%s\n", Str->str);
            Str->str[left] = ' ';
            Str->str[right] = ' ';
        }
        free(Str);
        Str = NULL;
    }
    return 0;
}